#ifndef SDPLAYER_H
#define SDPLAYER_H

#include <vector>
#include <math.h>
#include "../src/chipmunk.h"
#include "sdShip.h"
#include "sdTimed.h"

//A human player, controls a ship
class sdPlayer {
private:
    sdShip ship_;
        	    
public:
    sdPlayer();
    
    inline sdShip& getShip() {return ship_;}
    
    inline bool alive() {return !ship_.dead();}
    
    void move(cpVect& direction); //direction of force, amp 1.0 is full in that direction
    void turn(cpVect& direction); //turn to face this direction
	bool shoot(int weapon, std::set<sdTimed*>* bullets);
    inline void update(cpFloat ticks) {ship_.update(ticks);}
};

#endif

